package org.wang.gift.clients;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.wang.gift.domain.LoginUser;
import org.wang.gift.util.AjaxResult;

@FeignClient(value = "GIFT-AUTH-SERVER",fallbackFactory = LoginUserClientFallbackFactory.class)
public interface LoginUserClient {
    @PutMapping("/loginUser")
    AjaxResult addOrUpdate(@RequestBody LoginUser loginUser);
    @GetMapping("/oauth/test/{id}")
    AjaxResult oauthTest(@PathVariable("id") Long id);
}
